<?php
 foreach( $errors as $error){
    echo "Lỗi ".$error."<br/>";
 }
?>
    <h1>Thêm danh mục</h1>

<form action="admin.php?r=categories/insert" method="post"  class="form-horizontal" role="form" enctype="multipart/form-data" >
    <div class="form-group">
        <label class="col-sm-2 control-label">Tên danh mục</label>
        <div class="col-sm-10">
            <input name="name" type="text" value="" class="form-control"  />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Keywords</label>
        <div class="col-sm-10">
            <textarea name="keywords" class="form-control" ></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Mô tả</label>
        <div class="col-sm-10">
            <textarea name="description" class="form-control "></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">Position</label>
        <div class="col-sm-10">
            <textarea name="Position" class="form-control "></textarea>
        </div>
    </div>
   
    <div class="form-group">
        <div class="col-lg-10 col-lg-offset-2">
            <input type="submit" value="Thêm danh mục mới" class="btn btn-success"/>
             <a href="admin.php?r=categories/index" class="btn btn-info">Trở về</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="public/plugins/tinymce/tinymce.min.js"></script>